﻿<%@ Page Title="BookManage" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"
    CodeFile="BookManage.aspx.cs" Inherits="BookManage" %>

<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
    <h2>
        书籍管理
    </h2>
    <p>
    在库书籍：
    </p>
    <p>
        <asp:DataGrid  AutoGenerateColumns="false" ID="BookGrid" runat="server" BackColor="White" 
        BorderColor="#CCCCCC" BorderStyle="None" BorderWidth="1px" CellPadding="3" 
        onitemcommand="UndealOrder_ItemCommand">
        <Columns>
            <asp:BoundColumn DataField="ISBN" HeaderText="ISBN"></asp:BoundColumn>
            <asp:BoundColumn DataField="BookName" HeaderText="书名"></asp:BoundColumn>
            <asp:BoundColumn DataField="BookAuthor" HeaderText="作者"></asp:BoundColumn>
            <asp:BoundColumn DataField="BookPrice" HeaderText="单价"></asp:BoundColumn>
            <asp:BoundColumn DataField="BookSoldNum" HeaderText="销量"></asp:BoundColumn>
            <asp:BoundColumn DataField="BookRemainNum" HeaderText="库存"></asp:BoundColumn>
            <asp:BoundColumn DataField="BookReleaseTime" HeaderText="出版时间"></asp:BoundColumn>
            <asp:BoundColumn DataField="BookShelfTime" HeaderText="上架时间"></asp:BoundColumn>
            <asp:ButtonColumn ButtonType="PushButton" CommandName="Edit" Text="修改信息"></asp:ButtonColumn>  
            <asp:ButtonColumn ButtonType="PushButton" CommandName="Delete" Text="下架"></asp:ButtonColumn>                
        </Columns>
        <FooterStyle BackColor="White" ForeColor="#000066" />
        <HeaderStyle BackColor="#006699" Font-Bold="True" ForeColor="White" />
        <ItemStyle ForeColor="#000066" />
        <PagerStyle BackColor="White" ForeColor="#000066" HorizontalAlign="Left" 
            Mode="NumericPages" />
        <SelectedItemStyle BackColor="#669999" Font-Bold="True" ForeColor="White" />      
    </asp:DataGrid>
    </p>
    <p>
    添加/修改书籍信息：
    </p>
       <p>
        ISBN：
        </p>
        <p>
        <asp:TextBox ID="ISBN" runat="server"></asp:TextBox>
       </p>  
       <p>
        书籍名称：
        </p>
        <p>
        <asp:TextBox ID="BookName" runat="server"></asp:TextBox>
       </p> 
       <p>
        作者：
        </p>
        <p>
        <asp:TextBox ID="Author" runat="server"></asp:TextBox>
       </p> 
       <p>
        出版日期：
        </p>
        <p>
        <asp:TextBox ID="ReleaseDate" runat="server"></asp:TextBox>
       </p>     
       <p>
       单价：
       </p>
        <p>
       <asp:TextBox ID="UnitPrice" runat="server"></asp:TextBox>
       </p> 
       <p>
       库存：
       </p>
        <p>
       <asp:TextBox ID="RemainNum" runat="server"></asp:TextBox>
       </p>
       <p>
       描述：
       </p>
        <p>
       <asp:TextBox  ID="BookDesc" Height="80" Width="300" runat="server" TextMode="MultiLine"></asp:TextBox>
       </p>
       <p>
       图片：
       </p>
        <p>
       <asp:TextBox ID="Picture" Width="300" runat="server"></asp:TextBox>
       </p>
       <p>
       <asp:Button ID="AddButton" runat="server" Text="添加书籍" onclick="AddButton_Click" /> 
       <asp:Button ID="SubEditButton" runat="server" Text="保存信息" Enabled="false" 
               onclick="SubEditButton_Click" />
       </p>
</asp:Content>
